package com.cskaoyan.bean.admin.system;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.springframework.format.annotation.DateTimeFormat;

@Data
public class RoleUpdateBo {

    private Integer id;
    @Length(min = 3 ,max = 10,message = "角色名称应该在3-10位之间")
    private String name;
    private String desc;
    private Boolean enabled;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String addTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String updateTime;
    private Boolean deleted;
}
